/**
 * Part.java
 * @author: liuex
 * 2007-12-27 ����12:36:00
 *
 * note: 
 */
package lex.mtd.core.net;

import java.io.IOException;
import java.io.InputStream;

public interface DataSource {
	public String getURL();

	public long getContentLength(long seekOffset) throws IOException;

	public InputStream openInputStream() throws IOException;

	/**
	 * close this DataSource, release all resources, thus it can't be used again
	 */
	public void close();
}
